package com.cjzuji.rental.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)  //链式调用 可以连续调用setter方法而不需要每次都创建新的对象实例
@TableName("yp_risk")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class YpRisk {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;  //订单id

    @TableField(value = "order_id")
    private String orderId;  //订单编号

    @TableField(value = "name")
    private String realName;  //姓名

    @TableField(value = "phone")
    private String phone;  //电话

    @TableField(value = "card_id")
    private String cardId; //身份证

    @TableField(value = "address")
    private String address;  // 地址

    @TableField(value = "updata_time")
    private Date updataTime;  //更新时间
}